﻿using System.ComponentModel.DataAnnotations;

namespace Md.Api.Model.Manage.SysMenu.Request;
/// <summary>
/// 获取系统菜单树列表请求实体
/// </summary>
public class RequestGetSysMenuTreeListModel : RequestBaseModel
{
    /// <summary>
    /// 菜单名称
    /// </summary>
    public string? MenuName { get; set; }
    /// <summary>
    /// 父菜单ID
    /// </summary>
    public long? ParentId { get; set; }
    /// <summary>
    /// 是否为外链（0是 1否）
    /// </summary>
    public int? IsFrame { get; set; }
    /// <summary>
    /// 是否缓存（0缓存 1不缓存）
    /// </summary>
    public int? IsCache { get; set; }
    /// <summary>
    /// 菜单类型（M目录 C菜单 F按钮）
    /// </summary>
    [StringLength(1, ErrorMessage = "菜单类型长度为1")]
    public string? MenuType { get; set; }
    /// <summary>
    /// 菜单状态（0显示 1隐藏）
    /// </summary>
    [StringLength(1, ErrorMessage = "菜单显示长度为1")]
    public string? Visible { get; set; }
    /// <summary>
    /// 菜单状态（0正常 1停用）
    /// </summary>
    [StringLength(1, ErrorMessage = "菜单状态长度为1")]
    public string? Status { get; set; }
    /// <summary>
    /// 创建者
    /// </summary>
    public string? CreateBy { get; set; }
    /// <summary>
    /// 更新者
    /// </summary>
    public string? UpdateBy { get; set; }
    /// <summary>
    /// 开始时间
    /// </summary>
    public DateTime? BeginDate { get; set; }
    /// <summary>
    /// 结束时间
    /// </summary>
    public DateTime? EndDate { get; set; }
    /// <summary>
    /// 排序字段
    /// </summary>
    public string? OrderBy { get; set; }
    /// <summary>
    /// 是否倒序
    /// </summary>
    public bool? IsDesc { get; set; }
}

